<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改商品</title>
<style>
html, body, div, span, ul, li, h1, h2, h3, h4, p, a, img, input, form {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	outline: 0;
}

div, td, ul, li, dl, dt, dd, h2, h3, h4 {
	list-style: none;
	margin: 0;
	padding: 0;
}

div {
	display: block;
}

body {
	font-size: 12px;
	font-family: "微软雅黑", "宋体", Arial;
	color: #666;
}

li {
	display: list-item;
	text-align: -webkit-match-praent;
}

img {
	vertical-align: middle;
}

em {
	font-style: normal;
	color: #fff;
}

input, textarea, select, button {
	font-family: inherit;
	font-size: 100%;
	outline: 0;
}

a img {
	border: 0
}

body {
	color: #333;
	font: 12px "微软雅黑";
}

ul, ol, li {
	list-style-type: none;
	vertical-align: 0
}

a {
	outline-style: none;
	color: #535353;
	text-decoration: none;
	cursor: pointer
}

a:hover {
	text-decoration: none;
}

.clear {
	height: 0;
	overflow: hidden;
	clear: both
}

i, s {
	text-decoration: none;
	font-style: normal;
}

.formoverlay {
	cursor: default;
	width: 1419px;
	height: 949px;
	z-index: 5;
	opacity: 0.5;
	background: #999;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.formborder {
	border: 1px solid #476f9a;
}

.formcap {
	color: #fff;
	background: #476f9a;
}

td {
	font-size: 12px;
	line-height: 18px;
}

.form-cap-label {
	padding: 3px 0 0 4px;
	height: 30px;
	cursor: default;
}

.form-cap-txt {
	font-size: 14px;
	text-indent: 5px;
	letter-spacing: 1px;
}

.formcap-btn {
	padding-right: 5px;
}

.formcap-btn a img {
	width: 15px;
	height: 15px;
}

.layoutitem {
	width: 840px;
	border: 1px solid #ddd;
	margin: 49px auto;
}

.layout-tit {
	height: 30px;
	background: #eee;
	line-height: 30px;
	padding-left: 8px;
}

.layout-xx {
	padding: 8px;
}

.layout-xx li {
	height: 40px;
	line-height: 40px;
	margin-bottom: 5px;
	display: block;
	overflow: hidden;
}

.item-input {
	float: left;
	overflow: hidden;
	display: inline-block;
	width: 50%;
}

.item-label {
	width: 68px;
	line-height: 40px;
	display: inline-block;
	text-align: right;
}

.layoutitemcon {
	width: 235px;
	background: #fff;
	height: 24px;
	line-height: 24px;
	border: 1px solid #c9c9c9;
	text-indent: 5px;
	margin-left: 8px;
}

.layout-sele {
	width: 110px;
	background: #fff;
	height: 24px;
	line-height: 24px;
	border: 1px solid #c9c9c9;
	text-align: center;
	margin-left: 8px;
}

.layout-input {
	width: 200px;
	border: 1px solid #c9c9c9;
	height: 24px;
	line-height: 24px;
	margin-left: 8px;
	text-indent: 5px;
}

.item-input1 {
	overflow: hidden;
	display: inline-block;
	width: 100%;
	float: left;
}

.layout-bz {
	width: 687px;
	height: 24px;
	line-height: 24px;
	border: 1px solid #c9c9c9;
	background: #fff;
	margin-left: 8px;
	text-indent: 5px;
}

.lab {
	text-indent: 5px;
}

.layoutitem-add {
	float: right;
	padding-right: 15px;
}

.layoutitem-add a {
	width: 45px;
	height: 24px;
	line-height: 24px;
	margin: 12px 8px;
	display: inline-block;
	padding: 2px 3px;
}

.add {
	background: #ff0303;
	color: #fff;
	border-radius: 3px;
	text-align: center;
}

.bc {
	background: #f94913;
	border-radius: 3px;
	text-align: center;
	color: #fff;
}

.tc {
	background: #333;
	border-radius: 3px;
	text-align: center;
	color: #fff;
}
</style>
<script type="text/javascript">
				${message}
			</script>
</head>

<body>
	<form:form method="POST" modelAttribute="goods" action="/dt/amend.do">
		<form:errors path="*" element="div" cssClass="all-error" />
		<div class="formoverlay"></div>
		<table cellpadding="0" cellspacing="0" border="0" class="formborder"
			style="z-index: 99; position: absolute; left: 359px; top: 40px; width: 880px; display: block;">
			<tbody>

				<tr>
					<td align="left" valign="top"
						style="width: 880px; height: 579px; background: #fff;">
						<div class="formcontentsize" style="width: auto; height: auto;">
							<div class="layoutitem">
								<div class="layout-tit">商品基本信息</div>
								<div class="layout-xx">
									<ul>
										<li>
											<input type="hidden" name="id" id="" value="${goods.id}">
										</li>
										<li>
											<div class="item-input">
												<form:input path="goodName" class="layoutitemcon" />
												<form:errors path="goodName" cssClass="has-error" />
												<label class="item-label"> 商品名称</label>

											</div>
											<div class="item-input">
												<form:input path="count" class="layoutitemcon" />
												<form:errors path="count" cssClass="has-error" />
												<label class="item-label"> 商品数量</label>

											</div>
										</li>

										<li>
											<div class="item-input">
												<form:input path="price" class="layoutitemcon" />
												<form:errors path="price" cssClass="has-error" />
												<label class="item-label">商品原价</label>

											</div>
											<div class="item-input">
												<form:input path="nowPrice" class="layoutitemcon" />
												<form:errors path="nowPrice" cssClass="has-error" />
												<label class="item-label"> 商品现价</label>

											</div>
										</li>
										<li>
											<div class="item-input">
												<form:input path="weight" class="layoutitemcon" />
												<form:errors path="weight" cssClass="has-error" />
												<label class="item-label"> 库存重量</label>

											</div>
										</li>
									</ul>
								</div>
							</div>
							<div class="layoutitem-add">
								<button class="add">修改</button>
							</div>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<!--弹窗 仓库管理开始-->
	</form:form>
</body>
</html>
